///
/// @Author Administrator
/// @Date 2024/1/9 17:29
///
/// @Description 网络请求响应Code常量
class HttpResponseCode{
  ///私有构造
  HttpResponseCode._();
  ///请求成功code List集合：部分应用可能有多个响应码表示请求成功
  static List<int> successCodeList = [];
  /***************************通用Http相应码*************************************/
  ///成功状态码
  static const int success = 200;



  ///设备不存在
  static const  deviceUnExist = 10017;

  ///服务错误码
  static const int serviceError = 500;

  ///未找到资源错误码
  static const int notFoundError = 404;

  ///网络错误码
  static const int networkError = 502;

  ///超时错误码
  static const int timeoutError = 504;

  ///未授权错误码
  static const int unauthorizedError = 401;

  ///Token过期
  static const int tokenExpiredError = 403;

  ///Token错误
  static const int tokenError = 402;
  /**************************网络请求框架自定义相应码*******************************/
  ///取消请求
  static const int cancelRequest = 1000;

  ///连接超时
  static const int connectTimeout = 1001;

  ///请求超时
  static const int sendTimeout = 1002;

  ///响应超时
  static const int receiveTimeout = 1003;

  ///网络错误
  static const int networkErrorCode = 1004;

  ///未知错误
  static const int unknownError = -1;

  ///默认httpcode
  static const int defaultHttpCode = -9;

  ///Json解析异常
  static const int jsonParseError = 1005;
  /**业务状态码 后续补充**/


  ///graphQL  LinkException
  static const int graphQLLinkException = 2000;

  ///graphQL  服务费异常
  static const int graphQLError = 20001;
}